var config = {
    server: {
        port: 3000
    },
    log: {
        appenders : {
            console :{
                type: "console"
            },
            file: {
                type :"file",
                filename: "logs/app.log",
                max_log_size: 10485760,
                backups: 3,
                compress: false
            }
        },
        categories: {
            default: {
                appenders: [
                    "console",
                    "file"
                ],
                level: "info"
            }
        }
    },
    mysql: {
        host: '127.0.0.1',
        port: '3306',
        user: 'zhangke',
        password: '123456',  // 自己设置的密码
        database: 'go_study' // 数据库的名字
    },
    token: {
        expire_time: 360000,
        signkey: 'go_study'
    },
    filedata: {
        host: "http://192.168.95.129",
        url: "/gostudy_datafile/",
        local_dir: "/home/zhangke/Myprojects/gostudy-data/gostudy_datafile/",
        size_limit: 50 * 1024 * 1024
    }
}

module.exports = config;
